-
Notifications
You must be signed in to change notification settings - Fork 619
[SDK] Improve ERC1155 test coverage #4985
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Your org has enabled the Graphite merge queue for merging into mainAdd the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
size-limit report 📦
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4985 +/- ##
==========================================
+ Coverage 47.71% 47.77% +0.05%
==========================================
Files 1059 1058 -1
Lines 57314 57276 -38
Branches 3944 3947 +3
==========================================
+ Hits 27350 27362 +12
+ Misses 29273 29223 -50
Partials 691 691
*This pull request uses carry forward flags. Click here to find out more. |
Merge activity
|
## Problem solved
Short description of the bug fixed or feature added
<!-- start pr-codex -->
---
## PR-Codex overview
This PR focuses on enhancing test coverage for the ERC20 and ERC1155 extensions in the `thirdweb` package. It introduces conditional test execution based on the presence of a secret key and adds new tests to verify specific functionalities.
### Detailed summary
- Updated `describe` blocks to conditionally run tests based on `process.env.TW_SECRET_KEY` for multiple test files.
- Added tests for `isLazyMintSupported` in `erc1155: lazyMint`.
- Added tests for `isMintAdditionalSupplyToSupported` in `erc1155: mintAdditionalSupplyTo`.
- Added tests for `mintTo` functionality in `erc1155: mintTo`.
- Added tests for `isGetNFTsSupported` in `ERC1155 getNFTs`.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
b55a5e5 to
50e359d
Compare
Problem solved
Short description of the bug fixed or feature added
PR-Codex overview
This PR focuses on enhancing test cases for various ERC20 and ERC1155 functionalities by conditionally running tests based on the presence of a
TW_SECRET_KEY. It also introduces new tests for lazy minting and additional supply minting capabilities.Detailed summary
describeblocks to conditionally run tests usingdescribe.runIf(process.env.TW_SECRET_KEY).isLazyMintSupportedinerc1155: lazyMint.isMintAdditionalSupplyToSupportedinerc1155: mintAdditionalSupplyTo.erc1155: mintTo.isGetNFTsSupportedinERC1155 getNFTs.